<?php
  	$email 		= $this->formText('email',$this->Item['email'],array('class'=>'width-250 bg-green2 floatLeft' ));
  	$password 	= $this->formPassword('password','',array('class'=>'width-250 bg-green2 floatLeft' ));
  	$submit 	= $this->formSubmit('login','Login',array('class'=>'button','style'=>'padding: 2px 5px;'));
  
	$formHelp = '';
	$formHelp  .= $this->cmsFormHelp('.form-table #email', $this->translate("Enter email of your account|Ex: abc@yahoo.com"));
	$formHelp  .= $this->cmsFormHelp('.form-table #password', $this->translate("Password of account"));
	
	if(count($this->errors)>0){	
	 	foreach ($this->errors as $key => $val){	 		
	 		$$key .= $this->cmsError($key,$val);	
	 		$selector = '.form-table #' . $key . '-error';
	 		$options = array('type'=>'error','name'=>'#' .$key);
	 		$formHelp  .= $this->cmsFormHelp($selector, $this->translate($val),null,$options);
	 		
	 	}
	}
	 
  	$arrRow = array(
				array('label'=>$this->translate('Email'),'input'=>$email),						
				array('label'=>$this->translate('Password'),'input'=>$password),
				array('label'=>'','input'=>$submit)
				);  	
	$tdForm = $this->partialLoop('row-menu.php',$arrRow);	 

 ?>
 <script type="text/javascript">
	$(document).ready(function() {
		<?php echo $formHelp;?>
	});
 </script>
<div id="element-box">
	
		<div class="form-table" style="margin: 40px auto;" >
		<fieldset class="admin-fieldset" style="width:450px; margin: auto; ">
                <legend class="admin-legend"><?php echo $this->translate('Enter info')?></legend>
            	<table width="100%" border="0">
                	<?php echo $tdForm;?>
                </table>
 		</fieldset>	
 		<div class="clr"></div>
		</div>
</div>